package com.aaa.demo11;

import java.util.function.Supplier;

/**
 * @author ${崔灿}
 * @date 2022/11/03 20:15
 **/

public class TestSupplier {
    public static void main(String[] args) {
        Supplier<String> s = ()->{
            return "哈哈哈";
        };
        fun(s);
    }

    public static void fun(Supplier<String> s) {
        String a = s.get();
        System.out.println(a);
    }
}
